# 产生可执行程序：audit-seal audit-verify audit-watch
bin_PROGRAMS = audit-seal audit-verify audit-watch

# 源码只包含各自的 .c，公用逻辑在 libaudit.la 里（gm_crypto、p12_loader 已打进库）
audit_seal_SOURCES = audit-seal.c
audit_seal_LDADD = ${top_builddir}/lib/libaudit.la -lcrypto -lssl

audit_verify_SOURCES = audit-verify.c
audit_verify_LDADD = ${top_builddir}/lib/libaudit.la -lcrypto -lssl

audit_watch_SOURCES = audit-watch.c
audit_watch_LDADD = $(top_builddir)/lib/libaudit.la -lssl -lcrypto

# 头文件搜索路径（用到 lib/ 里的 gm_crypto.h, p12_loader.h）
AM_CPPFLAGS = -I$(top_srcdir)/lib

# 某些发行版需要这个宏定义
AM_CFLAGS = -D_GNU_SOURCE

